﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ThanhTu.GNC.Media.KQXS.DataAccess.BL;
using ThanhTu.GNC.Media.KQXS.DataAccess.DO;

namespace GNCMedia.KQXS
{
    public partial class DetailNews : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                int id = Convert.ToInt32(Request.QueryString["ID"]);
                BreakingNewsBL brnew = new BreakingNewsBL();
                BreakingNewsDO BrDO = new BreakingNewsDO();
                BrDO = brnew.getbyAwards(id);
                lb_title.Text = BrDO.Content.Substring(0, 150);
                img_tintuc.ImageUrl = BrDO.Image;
                img_tintuc.Height = 400;
                img_tintuc.Width = 450;
                lb_contents.Text = BrDO.Content.Substring(150);
            }
            catch (Exception ex)
            {
                Response.Write("lỗi ở load Detail new :" + ex);
            }
            finally
            {

            }
        }
    }
}